本文整理汇总了C#中Regulus类的典型用法代码示例。如果您正苦于以下问题:C# Regulus类的具体用法?C# Regulus怎么用?C# Regulus使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Regulus类属于命名空间,在下文中一共展示了Regulus类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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));
}
示例2: _Initial
private static void _Initial(Regulus.Remoting.Soul.Native.Application application)
{
application.SelectSystemEvent += (selector) =>
{
_Spawn(selector.Use("stand"));
};
}
示例3: _ToInGameState
private void _ToInGameState(Regulus.Remoting.ISoulBinder provider)
{
InGameState inGameState = new InGameState(provider);
StageMachine.Push(inGameState);
inGameState.OnBackLoginEvent += () => { _ToLoginState(provider); };
}
示例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);
}
示例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);
}
示例6: TcpController
public TcpController(Regulus.Utility.Command command, Regulus.Utility.Console.IViewer view)
{
_Command = command;
_View = view;
_Machine = new Game.StageMachine();
}
示例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();
}
示例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();
}
示例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;
}
示例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); };
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
}