本文整理汇总了C#中Regulus类的典型用法代码示例。如果您正苦于以下问题:C# Regulus类的具体用法?C# Regulus怎么用?C# Regulus使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Regulus类属于命名空间,在下文中一共展示了Regulus类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Set
public void Set(Regulus.Project.ItIsNotAGame1.Data.Item item)
{
_Item = item;
Name.text = item.Count.ToString();
Image.sprite = (Sprite)UnityEngine.Resources.Load("Icon/Item/" + _Item.Name , typeof(Sprite));
}
开发者ID:jiowchern,项目名称:ItIsNotAGame-FrontEnd,代码行数:7,代码来源:GameItem.cs
示例2: _Initial
private static void _Initial(Regulus.Remoting.Soul.Native.Application application)
{
application.SelectSystemEvent += (selector) =>
{
_Spawn(selector.Use("stand"));
};
}
开发者ID:kof1016,项目名称:Regulus,代码行数:7,代码来源:Program.cs
示例3: _ToInGameState
private void _ToInGameState(Regulus.Remoting.ISoulBinder provider)
{
InGameState inGameState = new InGameState(provider);
StageMachine.Push(inGameState);
inGameState.OnBackLoginEvent += () => { _ToLoginState(provider); };
}
开发者ID:kof1016,项目名称:RegulusTest,代码行数:7,代码来源:User.cs
示例4: StageRun
public StageRun(Regulus.Game.ICore core,Utility.Command command,int port , Utility.Console.IViewer viewer)
{
_View = viewer;
this._Command = command;
_ThreadSocketHandler = new ThreadSocketHandler(port, core);
_ThreadSocket = new System.Threading.Thread(_ThreadSocketHandler.DoWork);
}
开发者ID:kof1016,项目名称:Regulus,代码行数:7,代码来源:ControllerStageRun.cs
示例5: CTestSoul
void Regulus.Remoting.PhotonExpansion.IPhotonFramework.ObtainController(Regulus.Remoting.Soul.SoulProvider provider)
{
var soul = new CTestSoul();
provider.Bind<TestRemotingCommon.ITest>(soul);
soul.invoke();
//provider.Unbind<TestRemotingCommon.ITest>(soul);
}
开发者ID:jiowchern,项目名称:Regulus,代码行数:7,代码来源:TestApplication.cs
示例6: TcpController
public TcpController(Regulus.Utility.Command command, Regulus.Utility.Console.IViewer view)
{
_Command = command;
_View = view;
_Machine = new Game.StageMachine();
}
开发者ID:kof1016,项目名称:Regulus,代码行数:7,代码来源:TcpController.cs
示例7: Update
internal void Update(IObserveAbility observe, Regulus.Project.TurnBasedRPG.Map.EntityInfomation[] entitys, List<IObservedAbility> lefts)
{
foreach (var exit in lefts)
{
_Remove(_Within, exit.Id);
if (LeftEvent != null)
LeftEvent(exit);
}
foreach(var e in entitys.Except(_Within))
{
if (e.Observed != null)
{
if (IntoEvent != null)
IntoEvent(e.Observed);
}
}
foreach (var e in _Within.Except(entitys))
{
if (e.Observed != null)
{
if (LeftEvent != null)
LeftEvent(e.Observed);
}
}
_Within = entitys.ToList();
}
开发者ID:jiowchern,项目名称:Regulus,代码行数:30,代码来源:Field.cs
示例8: ConnectStage
public ConnectStage(Regulus.Remoting.Ghost.TProvider<Project.SamebestKeys.IConnect> connect_provider, OnConnect connect)
{
// TODO: Complete member initialization
this._ConnectProvider = connect_provider;
_Connect = connect;
_Connecter = new Connect();
}
开发者ID:jiowchern,项目名称:Regulus,代码行数:7,代码来源:ConnectStage.cs
示例9: BotConnectStage
public BotConnectStage(Regulus.Project.SamebestKeys.IUser _User, string ip, int port)
{
// TODO: Complete member initialization
this._User = _User;
this.ip = ip;
this.port = port;
}
开发者ID:kof1016,项目名称:Regulus,代码行数:7,代码来源:BotConnectStage.cs
示例10: _ToLoginState
//private void _ToConnectState(Regulus.Remoting.ISoulBinder provider)
//{
//ConnectStates connectState = new ConnectStates(provider);
//StageMachine.Push(connectState);
//connectState.OnDoneEvent += () => { _ToLoginState(provider); };
//}
private void _ToLoginState(Regulus.Remoting.ISoulBinder provider)
{
LoginStates loginState = new LoginStates(provider);
StageMachine.Push(loginState);
loginState.OnDoneEvent += () => { _ToInGameState(provider); };
}
开发者ID:kof1016,项目名称:RegulusTest,代码行数:13,代码来源:User.cs
示例11: CreateUser
public Regulus.Project.Crystal.Game.Core CreateUser(Regulus.Remoting.ISoulBinder binder, IStorage storage, IMap zone , Battle.IZone battle)
{
var core = new Regulus.Project.Crystal.Game.Core(binder, storage, zone, battle);
_Users.AddFramework(core);
core.InactiveEvent += () => { _Users.RemoveFramework(core); };
return core;
}
开发者ID:jiowchern,项目名称:KeysCore,代码行数:7,代码来源:Hall.cs
示例12: VerifyStage
public VerifyStage(string _Account, string _Password, Regulus.Remoting.INotifier<Regulus.Project.ItIsNotAGame1.Data.IVerify> providerNotice)
{
// TODO: Complete member initialization
this._Account = _Account;
this._Password = _Password;
this._Provider = providerNotice;
}
开发者ID:jiowchern,项目名称:ItIsNotAGame-FrontEnd,代码行数:7,代码来源:VerifyStage.cs
示例13: _ToListen
private void _ToListen(Regulus.Remoting.Soul.Native.Server server)
{
var stage = new HostListenStage(server);
stage.DoneEvent += _ToSetting;
_DrawWindow = stage.DrawWindow;
_Machine.Push(stage);
}
开发者ID:jiowchern,项目名称:UnityRemotingSample,代码行数:7,代码来源:Host.cs
示例14: _Build
private Regulus.Project.TurnBasedRPG.Data.Entity _Build(Regulus.Project.TurnBasedRPG.Data.StaticEntity entity, GameObject game_object)
{
var bc = game_object.GetComponent<BoxCollider>();
if (bc != null)
{
float x = game_object.transform.position.x;
float y = game_object.transform.position.z;
float w = game_object.transform.localScale.x * bc.size.x;
float h = game_object.transform.localScale.z * bc.size.z;
float r = game_object.transform.rotation.eulerAngles.y;
Debug.Log("x" + x + " " + "y" + y + " " + "w" + w + " " + "h" + h + " " + "r" + r + " ");
var obb = new Regulus.Utility.OBB(x, y, w, h);
obb.setRotation(r);
entity.Obb = obb;
return _Build(entity as Regulus.Project.TurnBasedRPG.Data.Entity, game_object);
}
throw new System.Exception("BoxCollider is null " + game_object.name);
}
开发者ID:jiowchern,项目名称:TurnBasedRPG,代码行数:25,代码来源:ExportZone.cs
示例15: _Observed_ShowActionEvent
void _Observed_ShowActionEvent(Regulus.Project.SamebestKeys.Serializable.MoveInfomation obj)
{
if (obj.Speed == 0)
{
_Player.Walk(Regulus.Utility.Random.Next(0, 360),0);
}
}
开发者ID:jiowchern,项目名称:Regulus,代码行数:7,代码来源:BotRunStage.cs
示例16: User
public User(Regulus.Remoting.Soul.SoulProvider provider , Regulus.Project.TurnBasedRPG.UserRoster user_roster , IWorld world)
{
_UserRoster = user_roster;
_Machine = new Regulus.Game.StageMachine<User>(this);
Provider = provider;
provider.BreakEvent += Quit;
_World = world;
}
开发者ID:kof1016,项目名称:Regulus,代码行数:8,代码来源:User.cs
示例17: User
public User(Regulus.Remoting.IAgent agent)
{
_Agent = agent;
_ConnectProvider = new Regulus.Remoting.Ghost.TProvider<Regulus.Utility.IConnect>();
_OnlineProvider = new Regulus.Remoting.Ghost.TProvider<Regulus.Utility.IOnline>();
_Machine = new Regulus.Utility.StageMachine();
_Updater = new Regulus.Utility.Updater();
}
开发者ID:jiowchern,项目名称:Regulus,代码行数:8,代码来源:User.cs
示例18: PlayerProvider_Supply
void PlayerProvider_Supply(Regulus.Project.SamebestKeys.IPlayer obj)
{
_Player = obj;
_Player.SetPosition(Regulus.Utility.Random.Next(0 , 30), Regulus.Utility.Random.Next(0, 30));
_Player.SetSpeed(1);
_Player.Walk(Regulus.Utility.Random.Next(0,360));
_TimeCounter.Reset();
}
开发者ID:kof1016,项目名称:Regulus,代码行数:8,代码来源:BotMapStage.cs
示例19: CreateUserInstance
public void CreateUserInstance(Regulus.Remoting.ISoulBinder provider)
{
User user = new User(provider);
_UserSet.Add(user);
provider.BreakEvent += () => { _UserSet.Remove(user); };
}
开发者ID:kof1016,项目名称:RegulusTest,代码行数:8,代码来源:UserManager.cs
示例20: _CreateUser
private UserController _CreateUser(Regulus.Utility.Updater<Regulus.Utility.IUpdatable> frameworkRoot)
{
Console.WriteLine("建立使用者.");
UserController user = new UserController();
frameworkRoot.Add(user);
return user;
}
开发者ID:jiowchern,项目名称:Regulus,代码行数:8,代码来源:Application.cs
注:本文中的Regulus类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论