Exemple #1
0
 public ItemsCraftedEventArgs(ItemArray items, UIntArray items_count, ItemArray resources, Critter crafter)
 {
     this.Items      = items;
     this.ItemsCount = items_count;
     this.Resources  = resources;
     this.Crafter    = crafter;
 }
Exemple #2
0
 public ItemsBarterEventArgs(ItemArray sale_items, UIntArray sale_items_count,
                             ItemArray buy_items, UIntArray buy_items_count,
                             Critter player, Critter npc)
 {
     this.SaleItems      = sale_items;
     this.SaleItemsCount = sale_items_count;
     this.BuyItems       = buy_items;
     this.BuyItemsCount  = buy_items_count;
     this.Player         = player;
     this.Npc            = Npc;
 }
Exemple #3
0
        public uint CreateTimeEvent(uint begin_second, Func <IntPtr, uint> func, UIntArray values, bool save)
        {
            var type = func.Method.DeclaringType;

            return(Global_CreateTimeEventValues(begin_second, CoreUtils.ParseFuncName(type.FullName + "::" + func.Method.Name).ThisPtr, values.ThisPtr, save));
        }
Exemple #4
0
 public uint CreateTimeEvent(uint begin_second, string func_name, UIntArray values, bool save)
 {
     return(Global_CreateTimeEventValues(begin_second, CoreUtils.ParseFuncName(func_name).ThisPtr, values.ThisPtr, save));
 }
Exemple #5
0
 public bool SetTimeEvent(uint id, uint duration, UIntArray values)
 {
     return(Global_GetTimeEvent(id, out duration, values.ThisPtr));
 }
Exemple #6
0
 public uint GetZoneLocationIds(ushort zx, ushort zy, uint zone_radius, UIntArray location_ids)
 {
     return(Global_GetZoneLocationIds(zx, zy, zone_radius, (IntPtr)location_ids));
 }
 public virtual uint GetEntires(int entire, UIntArray entires, UInt16Array hx, UInt16Array hy)
 {
     return(Map_GetEntires(thisptr, entire, (IntPtr)entires, (IntPtr)hx, (IntPtr)hy));
 }
 public virtual int GetTurnBasedSequence(UIntArray critter_ids)
 {
     return(Map_GetTurnBasedSequence(thisptr, critter_ids != null ? critter_ids.ThisPtr : IntPtr.Zero));
 }
Exemple #9
0
        public bool Get(string name, UIntArray data)
        {
            var ss = new ScriptString(name);

            return(Global_GetAnyData(ss.ThisPtr, data.ThisPtr));
        }
Exemple #10
0
 public uint GetBagItems(uint bag_id, UInt16Array pids, UIntArray min_counts, UIntArray max_counts, IntArray slots)
 {
     return(Global_GetBagItems(bag_id, (IntPtr)pids, (IntPtr)min_counts, (IntPtr)max_counts, (IntPtr)slots));
 }